import { View } from "../../../mvc/core/View";
import { LayerManager } from "../../manager/LayerManager";
import { ObjCreate } from "../common/ObjCreate";
import { ResFileConst } from "../../resource/ResFileConst";
import { HighlightManager } from "../../manager/HighlightManager";
import { GLoadedButton } from "../../../../com/mui/controls/GLoadedButton";
type int = number;
//class TeamBuyHintButton
    
    export  class TeamBuyHintButton extends View
    {
        constructor()
        {
            super();
            this.layer = LayerManager.rightTopUILayer;
            this.initUI();
            return;
        }

        protected initUI(): void
        {
            this._button = ObjCreate.createGLoadedButton(ResFileConst.TeamBuyIcon, 0, 0, 60, 50, this);
            return;
        }

        public /* override */ show(arg1: int=0, arg2: int=0): void
        {
            super.show(arg1, arg2);
            if (this.isFirstShow) 
            {
                HighlightManager.instance.glowEffectButton(this._button, true);
                this.isFirstShow = false;
            }
            return;
        }

        public /* override */ hide(): void
        {
            super.hide();
            HighlightManager.instance.glowEffectButton(this._button, false);
            return;
        }

        /* internal */ /* var */_button: GLoadedButton;

        /* internal */ /* var */isFirstShow: Boolean=true;
    }
